using System;
using System.Collections.Generic;
using System.Text;

using libsecondlife;

using Feathertail;

namespace NestBox
{
    public class UpdateAppearance : Feathertail.Command
    {
        FeathertailClient _Client;

        #region Command Members

        public void Setup(FeathertailClient Client)
        {
            _Client = Client;
        }

        public string HandleInput(string[] CmdLine)
        {
            _Client.Appearance.BeginAgentSendAppearance();
            return "Appearance update sent.";
        }

        public string[] GetCommandStrings()
        {
            return new string[] { "UpdateLook" };
        }

        public string GetHelpText()
        {
            return "Updates your appearance by requesting from the data server your current list of wearables, downloading the assets for those wearables, and constructing an AgentSetAppearance packet.";
        }

        public string GetSummaryText()
        {
            return "Sends a packet to the server to update your appearance.";
        }

        #endregion
    }
}
